
#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QListWidget>
#include <QMessageBox>
#include <DB.h>
#include <Upgrade.h>
#include <GenerateInit.h>
#include <Dele.h>
#include <RndIndex.h>

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE


class MainWindow : public QMainWindow
{
    Q_OBJECT
private:
    QList<QString> IdList;
public:
    void ReadId();
    void ListInit(int num);
    void RenewList(int num=0);
public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void on_LegacyGen_clicked();
    void on_renew_clicked();
    void on_DeleteOne_clicked();
    void on_LegacyList_itemClicked(QListWidgetItem *item);
    void on_UpGrd_clicked();

private:
    Ui::MainWindow *ui;


};

#endif // MAINWINDOW_H
